/**
 * <p>
 * 筛选配置
 *
 * @Author：Roy
 * @Description：预警管理
 * @Date：Create by 2023-12-15 11:20:26
 */
const selectConfig = {
  'early-warning-record': [
    {
      type: 'select-option',
      prop: 'sceneProjectId',
      name: '所属项目',
      optionList: [],
      selectPath: 'commonSelected',
      selectParams: {
        code: 'SceneProjectSelected'
      },
      dataProp: {
        dataType: 'resData',
        nameProp: 'label',
        codeProp: 'value'
      },
      selectStyle: { width: '180px' },
      selectConfig: {
        clearable: true,
        placeholder: '请选择所属项目'
      }
    },
    {
      type: 'select-cascader',
      prop: 'sceneInfo',
      name: '所属场景',
      optionList: [],
      selectConfig: {
        clearable: true,
        placeholder: '请选择所属场景',
        props: { checkStrictly: true }
      },
      selectStyle: { width: '180px' }
    },
    {
      type: 'select-date-picker',
      prop: 'warningDate',
      name: '预警时间',
      selectStyle: { width: '180px' },
      selectConfig: {
        type: 'date',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        clearable: true,
        placeholder: '请选择预警时间'
      }
    },
    {
      type: 'select-option',
      prop: 'meterDeviceId',
      name: '关联设备',
      optionList: [],
      selectStyle: { width: '180px' },
      selectConfig: {
        clearable: true,
        placeholder: '请选择关联设备'
        // iconConfig: {
        //   type: 'suffix',
        //   style: { cursor: 'pointer' }
        // }
      }
    },
    {
      type: 'select-option',
      name: '能源类型',
      prop: 'energyTypeId',
      optionList: [],
      selectPath: 'commonSelected',
      selectParams: {
        code: 'EnergyConsumptionTypeSelected'
      },
      selectConfig: {
        placeholder: '请选择能源类型',
        options: []
      },
      dataProp: {
        dataType: 'resData',
        nameProp: 'label',
        codeProp: 'value'
      },
      selectStyle: { width: '180px' }
    },
    {
      type: 'select-option',
      prop: 'meterCondition',
      name: '计量条件',
      optionList: [],
      selectPath: 'dictList',
      selectParams: {
        codeList: ['ecp-admin.earlyWarningRecord.meterCondition']
      },
      dataProp: {
        keyProp: 'ecp-admin.earlyWarningRecord.meterCondition',
        nameProp: 'label',
        codeProp: 'value'
      },
      selectStyle: { width: '180px' },
      selectConfig: {
        clearable: true,
        placeholder: '请选择计量条件'
      }
    },
    {
      type: 'select-option',
      prop: 'status',
      name: '信息状态',
      optionList: [],
      selectPath: 'dictList',
      selectParams: {
        codeList: ['ecp-admin.earlyWarningRecord.status']
      },
      dataProp: {
        keyProp: 'ecp-admin.earlyWarningRecord.status',
        nameProp: 'label',
        codeProp: 'value'
      },
      selectStyle: { width: '180px' },
      selectConfig: {
        clearable: true,
        placeholder: '请选择信息状态'
      }
    },
  ]
}

export default {}
export { selectConfig }
